<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>商品管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
    <link rel="stylesheet" href="style.css">
</head>
<body onload="PR.prettyPrint()">
<nav class="navbar">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="index.html">
                微信小程序-项目接口文档(东软睿乐购)-powered by 金山
            </a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="https://github.com/YeDaxia/JApiDocs" target="_blank">GitHub</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">V1.0<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div class="book with-summary">
    <div class="book-summary">
<div class="search-box form-group">
    <input type="text" class="form-control" id="inputSearch" placeholder="搜索接口">
    <span class="glyphicon glyphicon-search form-control-feedback" aria-hidden="true"></span>
</div>
<div id="accordion" class="catalog">
        <div class="panel">
            <div id="heading0" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse0" aria-controls="collapse0">
                <i class="glyphicon glyphicon-align-justify"></i> 分类
            </div>
            <div id="collapse0" class="collapse in " aria-labelledby="heading0">
                    <a class="catalog-item" href="com_neuedu_ec_controller_CategoriesController.html#categories">
                        商品分类
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading1" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse1" aria-controls="collapse1">
                <i class="glyphicon glyphicon-align-justify"></i> 商品管理
            </div>
            <div id="collapse1" class="collapse in " aria-labelledby="heading1">
                    <a class="catalog-item" href="com_neuedu_ec_controller_GoodsController.html#search">
                        商品列表搜索
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_GoodsController.html#detail">
                         商品详情
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading2" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse2" aria-controls="collapse2">
                <i class="glyphicon glyphicon-align-justify"></i> 首页
            </div>
            <div id="collapse2" class="collapse " aria-labelledby="heading2">
                    <a class="catalog-item" href="com_neuedu_ec_controller_HomeController.html#swiperdata">
                        轮播图
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_HomeController.html#catitems">
                        导航
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_HomeController.html#floordata">
                        楼层
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading3" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse3" aria-controls="collapse3">
                <i class="glyphicon glyphicon-align-justify"></i> 用户授权
            </div>
            <div id="collapse3" class="collapse " aria-labelledby="heading3">
                    <a class="catalog-item" href="com_neuedu_ec_controller_UserController.html#code2Session">
                        code换Session
                    </a>
            </div>
        </div>
</div>    </div>
    <div class="book-body">
        <div class="body-inner">
            <div class="book-header">
                <div class="d-flex justify-content-between">
                    <a class="header-menu toggle-catalog" href="javascript:void(0)"><i
                            class="glyphicon glyphicon-align-justify"></i> 目录</a>
                </div>
            </div>
            <div class="page-wrapper">
                <div class="page-inner">
                    <div class="action-list">
                        <div class="action-item">
<h2 id="search"><a href="#">商品列表搜索 </a></h2>
<p><strong>请求URL</strong></p>
<p>
    <code>/goods/search</code>
        <span class="label label-default">GET</span>
        <span class="label label-default">POST</span>
</p>
        <p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>
                    <tr>
                        <td>query</td>
                        <td>string</td>
                        <td>否</td>
                        <td>关键字</td>
                    </tr>
                    <tr>
                        <td>cid</td>
                        <td>int</td>
                        <td>否</td>
                        <td>分类</td>
                    </tr>
                    <tr>
                        <td>pagenum</td>
                        <td>int</td>
                        <td>是</td>
                        <td>页码</td>
                    </tr>
                    <tr>
                        <td>pagesize</td>
                        <td>int</td>
                        <td>是</td>
                        <td>页容量</td>
                    </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
	"meta":{
		"code":"int",
		"msg":"string"
	},
	"message":{
		"total":"int",
		"pagenum":"int",
		"goods":[{
			"goods_id":"int //商品ID",
			"cat_id":"int //分类id",
			"goods_name":"string //商品名称",
			"goods_price":"double //商品价格",
			"goods_number":"int //商品数量",
			"goods_weight":"int //商品重量",
			"goods_big_logo":"string //商品大图标",
			"goods_small_logo":"string //商品小图标",
			"goods_introduce":"string //商品介绍",
			"add_time":"long //商品添加时间",
			"upd_time":"long //商品更新时间",
			"hot_mumber":"int //热门商品数",
			"cat_one_id":"int //所属一级分类",
			"cat_two_id":"int //所属二级分类",
			"cat_three_id":"int //所属三级分类",
			"is_del":"string //是否删除",
			"is_promote":"boolean //是否促销",
			"goods_state":"int //商品状态",
			"goods_cat":"string //商品分类",
			"delete_time":"date //删除时间",
			"createtime":"date //数据创建时间",
			"pics":[{
				"pics_id":"int //主键",
				"goods_id":"int //商品ID",
				"pics_big":"string //大图",
				"pics_mid":"string //中图",
				"pics_sma":"string //小图",
				"pics_big_url":"string //大图路径",
				"pics_mid_url":"string //中图路径",
				"pics_sma_url":"string //小图路径",
				"createtime":"date //创建时间"
			}],
			"attrs":[{
				"attr_id":"int //主键",
				"goods_id":"int //商品ID",
				"attr_name":"string //属性名称",
				"attr_value":"string //属性属性值",
				"add_price":"int //属性价格",
				"atrr_vals":"string //属性多值",
				"attr_sel":"string //attr_sel",
				"attr_write":"string //attr_write",
				"createtime":"date //创建时间"
			}]
		}]
	}
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/com_neuedu_ec_controller_GoodsController_search_CommonResult.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/com_neuedu_ec_controller_GoodsController_search_CommonResult.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                        <div class="action-item">
<h2 id="detail"><a href="#"> 商品详情 </a></h2>
<p><strong>请求URL</strong></p>
<p>
    <code>/goods/detail</code>
        <span class="label label-default">GET</span>
        <span class="label label-default">POST</span>
</p>
        <p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>
                    <tr>
                        <td>goods_id</td>
                        <td>int</td>
                        <td>否</td>
                        <td>商品id</td>
                    </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
	"meta":{
		"code":"int",
		"msg":"string"
	},
	"message":{
		"goods_id":"int //商品ID",
		"cat_id":"int //分类id",
		"goods_name":"string //商品名称",
		"goods_price":"double //商品价格",
		"goods_number":"int //商品数量",
		"goods_weight":"int //商品重量",
		"goods_big_logo":"string //商品大图标",
		"goods_small_logo":"string //商品小图标",
		"goods_introduce":"string //商品介绍",
		"add_time":"long //商品添加时间",
		"upd_time":"long //商品更新时间",
		"hot_mumber":"int //热门商品数",
		"cat_one_id":"int //所属一级分类",
		"cat_two_id":"int //所属二级分类",
		"cat_three_id":"int //所属三级分类",
		"is_del":"string //是否删除",
		"is_promote":"boolean //是否促销",
		"goods_state":"int //商品状态",
		"goods_cat":"string //商品分类",
		"delete_time":"date //删除时间",
		"createtime":"date //数据创建时间",
		"pics":[{
			"pics_id":"int //主键",
			"goods_id":"int //商品ID",
			"pics_big":"string //大图",
			"pics_mid":"string //中图",
			"pics_sma":"string //小图",
			"pics_big_url":"string //大图路径",
			"pics_mid_url":"string //中图路径",
			"pics_sma_url":"string //小图路径",
			"createtime":"date //创建时间"
		}],
		"attrs":[{
			"attr_id":"int //主键",
			"goods_id":"int //商品ID",
			"attr_name":"string //属性名称",
			"attr_value":"string //属性属性值",
			"add_price":"int //属性价格",
			"atrr_vals":"string //属性多值",
			"attr_sel":"string //attr_sel",
			"attr_write":"string //attr_write",
			"createtime":"date //创建时间"
		}]
	}
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/com_neuedu_ec_controller_GoodsController_detail_CommonResult.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/com_neuedu_ec_controller_GoodsController_detail_CommonResult.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
<script>

    var search_source_data = [
            {name: '分类.商品分类', url: 'com_neuedu_ec_controller_CategoriesController.html#categories'},
            {name: '商品管理.商品列表搜索', url: 'com_neuedu_ec_controller_GoodsController.html#search'},
            {name: '商品管理. 商品详情', url: 'com_neuedu_ec_controller_GoodsController.html#detail'},
            {name: '首页.轮播图', url: 'com_neuedu_ec_controller_HomeController.html#swiperdata'},
            {name: '首页.导航', url: 'com_neuedu_ec_controller_HomeController.html#catitems'},
            {name: '首页.楼层', url: 'com_neuedu_ec_controller_HomeController.html#floordata'},
            {name: '用户授权.code换Session', url: 'com_neuedu_ec_controller_UserController.html#code2Session'},
    ];



    $('.toggle-catalog').click(function () {
        $('.book').toggleClass('with-summary');
    });

    $('#inputSearch').autocomplete({hint: false}, [
        {
            source: function (query, callback) {
                var result = [];
                for(var i = 0; i !== search_source_data.length; i++){
                    if(search_source_data[i].name.indexOf(query) !== -1){
                        result.push(search_source_data[i]);
                    }
                }
                callback(result);
            },
            displayKey: 'name',
            templates: {
                suggestion: function (suggestion) {
                    return suggestion.name;
                }
            }
        }
    ]).on('autocomplete:selected', function (event, suggestion, dataset, context) {
        self.location = suggestion.url;
    });
</script>
</body>
</html>